3.503 \(\int \frac{\cos ^{\frac{3}{2}}(c+d x) (A+B \sec (c+d x))}{(a+a \sec (c+d x))^2} \, dx\)
Optimal. Leaf size=171 \[ \frac{5 (2 A-B) \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )}{3 a^2 d}-\frac{(7 A-4 B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac{(7 A-4 B) \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{3 a^2 d (\cos (c+d x)+1)}+\frac{5 (2 A-B) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 a^2 d}-\frac{(A-B) \sin (c+d x) \cos ^{\frac{5}{2}}(c+d x)}{3 d (a \cos (c+d x)+a)^2} \]
[Out]
-(((7*A - 4*B)*EllipticE[(c + d*x)/2, 2])/(a^2*d)) + (5*(2*A - B)*EllipticF[(c + d*x)/2, 2])/(3*a^2*d) + (5*(2
*A - B)*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*a^2*d) - ((7*A - 4*B)*Cos[c + d*x]^(3/2)*Sin[c + d*x])/(3*a^2*d*(1
+ Cos[c + d*x])) - ((A - B)*Cos[c + d*x]^(5/2)*Sin[c + d*x])/(3*d*(a + a*Cos[c + d*x])^2)
________________________________________________________________________________________
Rubi [A] time = 0.400595, antiderivative size = 171, normalized size of antiderivative = 1.,
number of steps used = 7, number of rules used = 6, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used =
{2954, 2977, 2748, 2639, 2635, 2641} \[ \frac{5 (2 A-B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 a^2 d}-\frac{(7 A-4 B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac{(7 A-4 B) \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{3 a^2 d (\cos (c+d x)+1)}+\frac{5 (2 A-B) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 a^2 d}-\frac{(A-B) \sin (c+d x) \cos ^{\frac{5}{2}}(c+d x)}{3 d (a \cos (c+d x)+a)^2} \]
Antiderivative was successfully verified.
[In]
Int[(Cos[c + d*x]^(3/2)*(A + B*Sec[c + d*x]))/(a + a*Sec[c + d*x])^2,x]
[Out]
-(((7*A - 4*B)*EllipticE[(c + d*x)/2, 2])/(a^2*d)) + (5*(2*A - B)*EllipticF[(c + d*x)/2, 2])/(3*a^2*d) + (5*(2
*A - B)*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*a^2*d) - ((7*A - 4*B)*Cos[c + d*x]^(3/2)*Sin[c + d*x])/(3*a^2*d*(1
+ Cos[c + d*x])) - ((A - B)*Cos[c + d*x]^(5/2)*Sin[c + d*x])/(3*d*(a + a*Cos[c + d*x])^2)
Rule 2954
Int[((a_.) + csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))^(n_.)*((g_.)*sin[(e_.
) + (f_.)*(x_)])^(p_.), x_Symbol] :> Dist[g^(m + n), Int[(g*Sin[e + f*x])^(p - m - n)*(b + a*Sin[e + f*x])^m*(
d + c*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, g, p}, x] && NeQ[b*c - a*d, 0] && !IntegerQ[p] && I
ntegerQ[m] && IntegerQ[n]
Rule 2977
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_
.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[((A*b - a*B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x]
)^n)/(a*f*(2*m + 1)), x] - Dist[1/(a*b*(2*m + 1)), Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^(n -
1)*Simp[A*(a*d*n - b*c*(m + 1)) - B*(a*c*m + b*d*n) - d*(a*B*(m - n) + A*b*(m + n + 1))*Sin[e + f*x], x], x],
x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ
[m, -2^(-1)] && GtQ[n, 0] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0])
Rule 2748
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Rule 2639
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]
Rule 2635
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]
Rule 2641
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ
[{c, d}, x]
Rubi steps
\begin{align*} \int \frac{\cos ^{\frac{3}{2}}(c+d x) (A+B \sec (c+d x))}{(a+a \sec (c+d x))^2} \, dx &=\int \frac{\cos ^{\frac{5}{2}}(c+d x) (B+A \cos (c+d x))}{(a+a \cos (c+d x))^2} \, dx\\ &=-\frac{(A-B) \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac{\int \frac{\cos ^{\frac{3}{2}}(c+d x) \left (-\frac{5}{2} a (A-B)+\frac{3}{2} a (3 A-B) \cos (c+d x)\right )}{a+a \cos (c+d x)} \, dx}{3 a^2}\\ &=-\frac{(7 A-4 B) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}-\frac{(A-B) \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac{\int \sqrt{\cos (c+d x)} \left (-\frac{3}{2} a^2 (7 A-4 B)+\frac{15}{2} a^2 (2 A-B) \cos (c+d x)\right ) \, dx}{3 a^4}\\ &=-\frac{(7 A-4 B) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}-\frac{(A-B) \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}-\frac{(7 A-4 B) \int \sqrt{\cos (c+d x)} \, dx}{2 a^2}+\frac{(5 (2 A-B)) \int \cos ^{\frac{3}{2}}(c+d x) \, dx}{2 a^2}\\ &=-\frac{(7 A-4 B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d}+\frac{5 (2 A-B) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 a^2 d}-\frac{(7 A-4 B) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}-\frac{(A-B) \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac{(5 (2 A-B)) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx}{6 a^2}\\ &=-\frac{(7 A-4 B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d}+\frac{5 (2 A-B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 a^2 d}+\frac{5 (2 A-B) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 a^2 d}-\frac{(7 A-4 B) \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{3 a^2 d (1+\cos (c+d x))}-\frac{(A-B) \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}\\ \end{align*}
Mathematica [C] time = 6.71788, size = 1352, normalized size = 7.91 \[ \text{result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
Integrate[(Cos[c + d*x]^(3/2)*(A + B*Sec[c + d*x]))/(a + a*Sec[c + d*x])^2,x]
[Out]
(((-7*I)/2)*A*Cos[c/2 + (d*x)/2]^4*Csc[c/2]*Sec[c/2]*Sec[c + d*x]*(A + B*Sec[c + d*x])*((2*E^((2*I)*d*x)*Hyper
geometric2F1[1/2, 3/4, 7/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)
*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((3*I)*d
*(1 + E^((2*I)*d*x))*Cos[c] - 3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1/2, 3/4, -(E^((2*
I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d
*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))*Cos[c] + d*(-1 +
E^((2*I)*d*x))*Sin[c])))/((B + A*Cos[c + d*x])*(a + a*Sec[c + d*x])^2) + ((2*I)*B*Cos[c/2 + (d*x)/2]^4*Csc[c/
2]*Sec[c/2]*Sec[c + d*x]*(A + B*Sec[c + d*x])*((2*E^((2*I)*d*x)*Hypergeometric2F1[1/2, 3/4, 7/4, -(E^((2*I)*d*
x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*
Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((3*I)*d*(1 + E^((2*I)*d*x))*Cos[c] - 3*d*(-1 + E
^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1/2, 3/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(
1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*
E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))*Cos[c] + d*(-1 + E^((2*I)*d*x))*Sin[c])))/((B + A*Cos[c +
d*x])*(a + a*Sec[c + d*x])^2) - (20*A*Cos[c/2 + (d*x)/2]^4*Csc[c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[
d*x - ArcTan[Cot[c]]]^2]*Sec[c/2]*Sec[c + d*x]*(A + B*Sec[c + d*x])*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x
- ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot
[c]]]])/(3*d*(B + A*Cos[c + d*x])*Sqrt[1 + Cot[c]^2]*(a + a*Sec[c + d*x])^2) + (10*B*Cos[c/2 + (d*x)/2]^4*Csc[
c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2]*Sec[c + d*x]*(A + B*Sec[c + d*
x])*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - A
rcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(3*d*(B + A*Cos[c + d*x])*Sqrt[1 + Cot[c]^2]*(a + a*Sec[
c + d*x])^2) + (Cos[c/2 + (d*x)/2]^4*(A + B*Sec[c + d*x])*((-4*(-3*A + 2*B - 4*A*Cos[c] + 2*B*Cos[c])*Csc[c])/
d + (8*A*Cos[d*x]*Sin[c])/(3*d) + (2*Sec[c/2]*Sec[c/2 + (d*x)/2]^3*(-(A*Sin[(d*x)/2]) + B*Sin[(d*x)/2]))/(3*d)
- (4*Sec[c/2]*Sec[c/2 + (d*x)/2]*(-3*A*Sin[(d*x)/2] + 2*B*Sin[(d*x)/2]))/d + (8*A*Cos[c]*Sin[d*x])/(3*d) + (2
*(-A + B)*Sec[c/2 + (d*x)/2]^2*Tan[c/2])/(3*d)))/(Sqrt[Cos[c + d*x]]*(B + A*Cos[c + d*x])*(a + a*Sec[c + d*x])
^2)
________________________________________________________________________________________
Maple [B] time = 2.084, size = 435, normalized size = 2.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cos(d*x+c)^(3/2)*(A+B*sec(d*x+c))/(a+a*sec(d*x+c))^2,x)
[Out]
-1/6*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(16*A*cos(1/2*d*x+1/2*c)^8+12*A*cos(1/2*d*x+1/2*c
)^6+20*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))*
cos(1/2*d*x+1/2*c)^3+42*A*cos(1/2*d*x+1/2*c)^3*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)*
EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))-24*B*cos(1/2*d*x+1/2*c)^6-10*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*
d*x+1/2*c)^2+1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))*cos(1/2*d*x+1/2*c)^3-24*B*cos(1/2*d*x+1/2*c)^3*(si
n(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))-48*A*cos(1/2
*d*x+1/2*c)^4+38*B*cos(1/2*d*x+1/2*c)^4+21*A*cos(1/2*d*x+1/2*c)^2-15*B*cos(1/2*d*x+1/2*c)^2-A+B)/a^2/cos(1/2*d
*x+1/2*c)^3/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)
^(1/2)/d
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \sec \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac{3}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^(3/2)*(A+B*sec(d*x+c))/(a+a*sec(d*x+c))^2,x, algorithm="maxima")
[Out]
integrate((B*sec(d*x + c) + A)*cos(d*x + c)^(3/2)/(a*sec(d*x + c) + a)^2, x)
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B \cos \left (d x + c\right ) \sec \left (d x + c\right ) + A \cos \left (d x + c\right )\right )} \sqrt{\cos \left (d x + c\right )}}{a^{2} \sec \left (d x + c\right )^{2} + 2 \, a^{2} \sec \left (d x + c\right ) + a^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^(3/2)*(A+B*sec(d*x+c))/(a+a*sec(d*x+c))^2,x, algorithm="fricas")
[Out]
integral((B*cos(d*x + c)*sec(d*x + c) + A*cos(d*x + c))*sqrt(cos(d*x + c))/(a^2*sec(d*x + c)^2 + 2*a^2*sec(d*x
+ c) + a^2), x)
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)**(3/2)*(A+B*sec(d*x+c))/(a+a*sec(d*x+c))**2,x)
[Out]
Timed out
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \sec \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac{3}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^(3/2)*(A+B*sec(d*x+c))/(a+a*sec(d*x+c))^2,x, algorithm="giac")
[Out]
integrate((B*sec(d*x + c) + A)*cos(d*x + c)^(3/2)/(a*sec(d*x + c) + a)^2, x)